function handles = couldNotRead(handles);

%    h = errordlg(lasterr,'Could not read the data!!','modal');

okButtonMemMapsModal('Title',lasterr);
prompt = {'Analysis results location','Brain atlas location','Brain mask location'};
title = 'Set paths';
lines = 1;
pn = fileparts(handles.paramFile);
s = what;
[crap slashOrient] = max([length(strfind(pn,'/')) length(strfind(pn,'\'))]);
slashes = '/\';
sl = slashes(slashOrient);
def = {[pn sl],handles.Pub.atlasPath,handles.Pub.maskPath};
answer = inputdlg(prompt,title,lines,def);
if isempty(answer)
    handles.repeatLoadingImages = -1;
    return
end
for k = 1:3
    if ~strcmp(answer{k}(end),sl)
        answer{k} = [answer{k} sl];
    end
end
button = saveSettingsModal('Title','Save settings');
if strcmp(button,'Yes')
    fileSave = 1;
    [memMaps,Params,flag] = changeDirectory([answer{1}],[answer{2}],[answer{3}],fileSave);
%       okButtonModal('title',lasterr);
    if flag
        handles.loadMemMaps = 0;
        handles.memMaps = memMaps;
        okButtonModal('title',lasterr);
%        okButtonModal(lasterr,'Could not save parameter files for future sessions!');
%        h = warndlg(lasterr,'Could not save parameter files for future sessions!');
    else
        handles.loadMemMaps = 1;
    end
elseif strcmp(button,'No') || strcmp(button,'Cancel')
    fileSave = 0;
    [memMaps,Params,flag] = changeDirectory([answer{1} sl],[answer{2} sl],[answer{3} sl],fileSave);
    handles.loadMemMaps = 0;
    handles.memMaps = memMaps;
end
handles.Priv = Params.PrivateParams;
handles.Pub = Params.PublicParams;
handles.repeatLoadingImages = handles.repeatLoadingImages + 1;
